<template>
  <view class="page">
    <view class="list flex-row justify-between mt20" v-for="(item, index) in list" :key="index">
      <image class="thumbImage" mode="aspectFill" :src="item.thumb_image" @click="$to('/pages/productDetail/index?id=' + item.article_id)" />
      <view class="box flex-col justify-between">
        <view class="name" @click="$to('/pages/productDetail/index?id=' + item.article_id)">{{ item.title }}</view>
        <view>
          <slot :item="item" name="btns"></slot>
        </view>
      </view>
    </view>
  </view>
</template>
<script>
export default {
  props: ['list'],
  data() {
    return {}
  },
  onLoad(option) {},
  methods: {}
}
</script>
<style lang="scss" scoped>
@import '../pages/common/common.css';

.list {
  background-color: rgba(255, 255, 255, 1);
  border-radius: 6px;
  width: 100%;
  margin: 0 auto;
  padding: 30rpx;
  margin-top: 20rpx;
}

.thumbImage {
  width: 160rpx;
  height: 160rpx;
  border-radius: 10px;
}

.box {
  height: 160rpx;
  width: 70%;
}

.name {
  color: rgba(51, 51, 51, 1);
  font-size: 15px;
  width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.delBtn {
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid rgba(241, 241, 241, 1);
  text-align: center;
  margin-top: 10px;
  width: 120rpx;
  height: 60rpx;
  line-height: 55rpx;
  border-radius: 20px;
  margin-left: 150px;
}

.status {
  font-size: 12px;
}
.seeNum {
  font-size: 12px;
  color: #999999;
}
</style>
